package com.gitee.tje.waving.aop;

/**
 * 切点advisor
 *
 * @author taojiaen
 * @date 2018-03-18 18:42
 */
public class PointCutAdvisor implements Advisor {
    private Advice advice;
    private PointCut pointCut;


    public PointCutAdvisor() {
    }

    public PointCutAdvisor(Advice advice, PointCut pointCut) {
        this.advice = advice;
        this.pointCut = pointCut;
    }


    public void setAdvice(Advice advice) {
        this.advice = advice;
    }

    public void setPointCut(PointCut pointCut) {
        this.pointCut = pointCut;
    }

    @Override
    public Advice getAdvice() {
        return advice;
    }


    public PointCut getPointCut() {
        return pointCut;
    }
}
